package com.bml.architect.spring.convert.spring;

import com.bml.architect.spring.service.User;
import org.springframework.core.convert.support.DefaultConversionService;

public class ConvertTest {

    public static void main(String[] args) {
        DefaultConversionService conversionService = new DefaultConversionService();
        conversionService.addConverter(new StringToUserConvert());
        User user = conversionService.convert("ni hao a ", User.class);
        System.out.println(user);
    }
}
